using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.EntidadesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]


	/// <summary>Class for handling datasets</summary>  
		public class EntidadFormacionData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_ENTIDAD_FORMACION_TABLE = "ART_ENTIDAD_FORMACION";

		public const string ENT_ID_FIELD = "ENT_ID";
		public const string FRM_ID_FIELD = "FRM_ID";
		public const string ENT_SINO_IMPARTE_FORMACION_FIELD = "ENT_SINO_IMPARTE_FORMACION";


		protected EntidadFormacionData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		public EntidadFormacionData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			this.TableName = ART_ENTIDAD_FORMACION_TABLE;
			Columns.Add(ENT_ID_FIELD, typeof (Decimal));
			Columns[ENT_ID_FIELD].Caption="Id Entidad";

			Columns.Add(FRM_ID_FIELD, typeof (Decimal));
			Columns[FRM_ID_FIELD].Caption="Id Tipo Formacion Impartida";

			Columns.Add(ENT_SINO_IMPARTE_FORMACION_FIELD, typeof (String));
			Columns[ENT_SINO_IMPARTE_FORMACION_FIELD].Caption="Entidad Imparte Formacion";
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addEntidadFormacion(DataRow row)
		{
			this.Rows.Add(row);
		}

	}

}